const svc = require('../util/service');

module.exports = (req, res) => {
    svc.handlePost(req, res, (reqObj, resolve) => {
        var result = JSON.parse(JSON.stringify(req.session.customer))
        if (req.session.admin) {
            result.isAdmin = true
        }
        result.result = 1
        resolve(result)
    })
}
